package openapi

import (
	"github.com/gin-gonic/gin"
	v1 "qm_system_server/server/api/v1"
)

type ApiRouter struct {
}

func (s *ApiRouter) InitOpenapiRouter(Router *gin.RouterGroup) {
	router := Router.Group("openApi")
	var openApi = v1.ApiGroupApp.OpenApiGroup.OpenApi
	{
		router.GET("getHugeData", openApi.GetHugeData)
		router.GET("tools/admin/info/", openApi.GetDistrictList)
		router.GET("dmp/custom_audience/select/", openApi.GetCustomCrowdList)
		router.GET("tools/aweme_multi_level_category/get/", openApi.GetAwemeFanCategories)
		router.GET("tools/aweme_author_info/get/", openApi.GetAwemeAuthorInfo)
		router.GET("tools/aweme_info_search/", openApi.GetAwemeSearchInfo)
		router.GET("tools/aweme_category_top_author/get/", openApi.GetAwemeFanAccounts)
		router.GET("tools/aweme_similar_author_search/", openApi.GetAwemeSimilarAccounts)
		router.GET("tools/interest_action/action/category/", openApi.GetActionCategories)
		router.GET("tools/interest_action/interest/category/", openApi.GetInterestCategories)
		router.GET("tools/interest_action/action/keyword/", openApi.GetActionKeywords)
		router.GET("tools/interest_action/interest/keyword/", openApi.GetInterestKeywords)
		router.GET("tools/interest_action/keyword/suggest/", openApi.GetActionInterestKeywordSuggest)
		router.GET("tools/interest_action/id2word/", openApi.GetInterestActionInfoByIs)
		router.GET("tools/union/flow_package/get/", openApi.GetFlowPackage)

		router.POST("suggestWords", openApi.GetSuggestWords)
		router.POST("createProject", openApi.CreateProject)
		router.POST("updateProject", openApi.UpdateProject)
		router.POST("delProject", openApi.DelProject)
		router.POST("updateStatusProject", openApi.UpdateStatusProject)

		//router.GET("tools/estimate_audience/", openApi.getEstimate)

		router.GET("file/image/get/", openApi.GetImages)               // 获取图片
		router.POST("file/image/ad/", openApi.UploadImage)             // 上传图片
		router.GET("file/video/get/", openApi.GetVideos)               // 获取视频
		router.POST("file/video/ad/", openApi.UploadVideo)             // 上传视频
		router.GET("file/audio/get/", openApi.GetAudios)               // 获取音频
		router.POST("file/audio/ad/", openApi.UploadAudio)             // 上传音频
		router.GET("carousel/list/", openApi.CarouselList)             // 获取图文素材
		router.POST("carousel/create/", openApi.CarouselCreate)        // 上传图文
		router.POST("video_cover/suggest/", openApi.VideoCoverSuggest) // 获取视频智能封面
	}

}
